﻿using System;
using System.Collections.Generic;
using ZOIL.Framework.Presentation;
using ZOIL.DataModel;

namespace ZOIL.Library.Components
{
    public interface Card
    {
        int? ProID
        {
            get;
            set;
        }

        int? CategoryID
        {
            get;
            set;
        }

        int? CardID
        {
            get;
            set;
        }

        int? FakeZoomLevelOut
        {
            get;
            set;
        }

        int? FakeZoomLevelIn
        {
            get;
            set;
        }

        int? Topic
        {
            get;
            set;
        }

        String LogoUrl
        {
            get;
            set;
        }

        String TextureUrl
        {
            get;
            set;
        }

        int? LeftID
        {
            get;
            set;
        }

        int? RightID
        {
            get;
            set;
        }

        int? TopID
        {
            get;
            set;
        }

        int? BottomID
        {
            get;
            set;
        }

        ZID ParentZID
        {
            get;
            set;
        }

        bool onScreen
        {
            get;
            set;
        }

        ZID ID
        {
            get;
            set;
        }
    }

    public class CardComparer : IComparer<Card>
    {
        public CardComparer() : base() { }

        public int Compare(Card a, Card b)
        {
            if (a.CardID < b.CardID)
                return -1;
            else
                return 1;
        }
    }
}
